<?php
/**
 * Patient Signal update page. Used in update action in PatientSignalController.
 *
 * @package   views
 * @subpackage patientSignal
 * @since     1.0
 * @filesource
 */

$this->breadcrumbs=array(
	'Patient Signals'=>array('index'),
	$model->subject=>array('view','id'=>$model->id),
	'Update',
);

$this->menu=array(
	array('label'=>'List Patient Signal', 'url'=>array('index')),
	array('label'=>'Create Patient Signal', 'url'=>array('upload'),
		'visible'=>Yii::app()->user->checkAccess('signalCreate',array('organizationId'=>$model->organizationId))),
	array('label'=>'View Patient Signal', 'url'=>array('view', 'id'=>$model->id),
		'visible'=>Yii::app()->user->checkAccess('signalView',array('organizationId'=>$model->organizationId))),
//	array('label'=>'Manage PatientSignal', 'url'=>array('admin')),
);
?>

<h1>Update PatientSignal - <?php echo $model->subject; ?> of Organization <?php echo $model->organization->name;?></h1>
<div class="form">
<?php
$form=$this->beginWidget('CActiveForm', array(
	'id'=>'patient-signal-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>
	<?php	
	$this->widget('zii.widgets.jui.CJuiTabs', array(
	    'tabs'=>array(
	        'Subject'=>$this->renderPartial('_form1',array('model'=>$model,'form'=>$form), true),
	        'Treatment History'=>$this->renderPartial('_form2',array('model'=>$model,'form'=>$form), true),
	        'Interviewer'=>$this->renderPartial('_form3',array('model'=>$model,'form'=>$form), true),
	        'Medical Technologist'=>$this->renderPartial('_form4',array('model'=>$model,'form'=>$form), true),
	        'Electrodes'=>$this->renderPartial('_form5',array('model'=>$model,'form'=>$form), true),
	),
	// additional javascript options for the tabs plugin
	    'options'=>array(
	        'collapsible'=>false,
	),
	));
	?>
	<div class="row buttons">
		<?php echo CHtml::submitButton('Save'); ?>
	</div>

<?php $this->endWidget(); ?>
</div>